package cn.tx.service.Impl;
import cn.tx.dao.ClassesDao;
import cn.tx.model.Classes;
import cn.tx.model.Grade;
import cn.tx.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class ClassesServicelmp implements ClassesService {
    @Autowired
    ClassesDao classesDao;
    @Override
    public List<Classes> findAll(){
        return classesDao.findAll();
    };
    @Override
    public int addclasses(Classes classes){
        return classesDao.addclasses(classes);
    };
    @Override
    public List<Classes> findList(Map<String, Object> querymap){
        return classesDao.findList(querymap);
    };
    @Override
    public int UpdateGradeById(Classes classes){
        return classesDao.UpdateGradeById(classes);
    };
    @Override
    public int delete(String ids){
        return classesDao.delete(ids);
    };
    @Override
    public int findTotal(Map<String, Object> querymap){
        return classesDao.findTotal(querymap);
    };
}
